find_package(OpenGL REQUIRED)
add_library(glad SHARED glad/glad.c glad/glad.h glad/khrplatform.h)
target_link_libraries(glad PUBLIC OpenGL::GL)
target_include_directories(glad PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_compile_definitions(glad PRIVATE GLAD_GLAPI_EXPORT_BUILD PUBLIC GLAD_GLAPI_EXPORT)
